Filename | (eval 1117)[/usr/share/perl5/CGI.pm:932] |
Statements | Executed 20 statements in 92µs |
Eval Invoked At | /usr/share/perl5/CGI.pm line 932 |
Sibling evals | 1, 2, 3, 4, 5, 6 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
0 | 0 | 0 | 0s | 0s | delete | CGI::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package CGI; #### Method: delete | ||||
2 | # Deletes the named parameter entirely. | ||||
3 | #### | ||||
4 | sub delete { | ||||
5 | 2 | 25µs | 2 | 5µs | my($self,@p) = self_or_default(@_); # spent 5µs making 2 calls to CGI::self_or_default, avg 3µs/call |
6 | 2 | 36µs | 2 | 19µs | my(@names) = rearrange([NAME],@p); # spent 19µs making 2 calls to CGI::Util::rearrange, avg 10µs/call |
7 | 2 | 1µs | my @to_delete = ref($names[0]) eq 'ARRAY' ? @$names[0] : @names; | ||
8 | 2 | 200ns | my %to_delete; | ||
9 | 2 | 1µs | for my $name (@to_delete) | ||
10 | { | ||||
11 | 2 | 4µs | CORE::delete $self->{param}{$name}; | ||
12 | 2 | 400ns | CORE::delete $self->{'.fieldnames'}->{$name}; | ||
13 | 2 | 3µs | $to_delete{$name}++; | ||
14 | } | ||||
15 | 2 | 19µs | 2 | 10µs | @{$self->{'.parameters'}}=grep { !exists($to_delete{$_}) } $self->param(); # spent 10µs making 2 calls to CGI::param, avg 5µs/call |
16 | 2 | 2µs | return; | ||
17 | } | ||||
18 | |||||
19 | ; |